#ifndef _OPENGL_
#define _OPENGL_

#ifdef WIN32

#include <EGL/egl.h>
#include <GLES/gl.h>

#endif


#include "device.h"

class COpenGL : public CDevice
{
public :
	COpenGL();
	~COpenGL();

	bool	Create(HWND hwnd);
	void	Destroy();

	void	Clear();
	void	Present();
	void	Render();

protected :
	HWND			hwnd;
	HDC				hdc;

	EGLDisplay			eglDisplay;
	EGLConfig			eglConfig;
	EGLSurface			eglSurface;
	EGLContext			eglContext;
	NativeWindowType	eglWindow;
};


#endif